package com.xinjian.jianba.dao.dwmid;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import com.xinjian.jianba.enity.UserInfoEnity;

public interface UserInfoDao {

	int insert(UserInfoEnity userInfo);

	List<UserInfoEnity> select(UserInfoEnity userInfo);

	int update(UserInfoEnity userInfo);

	// 根据用户的主键Id查找用户
	UserInfoEnity findById(Long Id);

	// 根据用户的昵称查找用户确保昵称唯一
	UserInfoEnity findByNickName(String NickName);

	int logout(UserInfoEnity usertokenInfo);

	List<UserInfoEnity> findByUserIdList(@Param("idList") List<Long> idList);
	
	int updateQiNiuLogo(Map<String,Object> map);

	int updateIsregister(Long userId);
	
	String selectNicknameByuserId(Long userId);
	
	List<UserInfoEnity>findByUidBetween(Map<String,Long> map);
	@MapKey("id")
	Map<Long,UserInfoEnity> findByUserIdListGroup(@Param("list") List<Long> idList);
}